let whatDevice = () => {
    let ua = navigator.userAgent.toLowerCase();
    let isWeixin = ua.indexOf('micromessenger') !== -1;
    let isAndroid = ua.indexOf('android') !== -1;
    let isIos = (ua.indexOf('iphone') !== -1) || (ua.indexOf('ipad') !== -1);
    if (isWeixin) {
      return 'weixin';
    } else if (isAndroid) {
      return 'android';
    } else if (isIos) {
      return 'android';
    } else {
      return '无法获取设备类型！';
    }
  };
  export default whatDevice